package com.hspedu.hspliving.commodity.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hspedu.common.utils.PageUtils;
import com.hspedu.hspliving.commodity.entity.SpuInfoEntity;
import com.hspedu.hspliving.commodity.vo.SpuSaveVO;

import java.util.Map;

/**
 * 商品 spu 信息
 *
 * @author hsp
 * @email hsp@gmail.com
 * @date 2024-07-21 20:19:02
 */
public interface SpuInfoService extends IService<SpuInfoEntity> {

    PageUtils queryPage(Map<String, Object> params);

    // 保存SpuSaveVO 对象/数据到表
    void saveSpuInfo(SpuSaveVO spuSaveVO);

    // 保存SPU基本信息
    void saveBaseSpuInfo(SpuInfoEntity spuInfoEntity);

    //通过携带的检索条件，进行分页查询(3-74)
    PageUtils queryPageByCondition(Map<String, Object> params);

    //商品SPU上架(3-78)
    void up(Long spuId);

    //商品SPU下架(3-78)
    void down(Long spuId);
}

